package codebot.processor.languages;

import codebot.processor.IScreen;

/**
 * Specific syntax processor for Java
 */
public class Javascript extends CFamily {

  protected static int DEPTH = CFamily.DEPTH + 1;

  /**
   * @see Lang.java
   */
  @Override
  public void processSpecificSyntax(IScreen screen, String code, int s, int e) {
    KEYWORDS = new String[] { "then", "alert", "function", "var",
        "try", "catch", "const", "new" };
    //TextProcessor.processGeneralSyntax(screen, code, s-3, e);
    super.processSpecificSyntax(screen, code, s-3, e);
  }

  @Override
  public String toString() {
    return "Javascript";
  }

}
